export const incrementAge = () => ({type:'incrementAge'})
export const decrementAge = () => ({type:'decrementAge'})
export const changePerson = (payload) =>({type:'changePerson', payload})

// 异步action
export const asyncIncrementAge = () => {
  return (dispatch) => {
    setTimeout(() => {
      dispatch(incrementAge())
    }, 500);
  }
}